<?php
session_start();
?>
<html>
    <head>
        <meta name="key/words" content="berbagi,charity,community"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="./css/bootstrap.css">       
        <link rel="stylesheet" href="./style.css">
        <title>Semua Berbagi-Indonesia Charity Community</title>  
    </head>
    <body>
        <?php
        if (isset($_SESSION['error'])) {
            $nama = $_SESSION['error']['namaUser'];
            $email = $_SESSION['error']['emailUser'];
            $no = $_SESSION['error']['noTelpUser'];
            $create = $_SESSION['error']['createUser'];
            echo '<script>alert("' . $nama . '\n' . $email . '\n' . $no . '\n' . $create . '")</script>';
            unset($_SESSION['error']);
        } else if (isset($_SESSION['user'])) {
            include './pageUser.php';
            exit();
        }
        ?>
        <div class="container">            
            <div class="navbar navbar-default" role="navigation">
                <div class="container-fluid">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed togle_margin" data-toggle="collapse" data-target=".navbar-collapse"> 
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span> 
                            <span class="icon-bar"></span> 
                            <span class="icon-bar"></span> 
                        </button> 
                        <form class="navbar-form" role="search">
                            <div class="input-group">
                                <input type="text" class="form-control" placeholder="Search" name="text_search">
                                <div class="input-group-btn">
                                    <button class="btn btn-default buttonCari" type="submit" name="button_search"><i class="glyphicon glyphicon-search"></i></button>
                                </div>
                            </div>
                        </form>
                    </div> 
                    <div class="navbar-collapse collapse"> 
                        <ul class="nav navbar-nav navbar-right"> 
                            <li>
                                <a href="http://semuaberbagi.com">Beranda</a>
                            </li>
                            <li>
                                <a href="masuk.php">Masuk</a>
                            </li>
                        </ul> 
                    </div> 
                </div>
            </div>

            <div class="jumbotron utama">
                <div class="row">
                    <div class="col-md-6 col-xs-12">
                        <img src="img/logo.png" class="img-responsive im"/>
                        <ul class="nav nav-pills nav-stacked menu">
                            <li>
                                <a href="#"><small>Our Mission</small></a>
                            </li>
                            <li>
                                <a href="#"><small>Donation</small></a>
                            </li>
                            <li>
                                <a href="#"><small>Help Children</small></a>
                            </li>
                            <li>
                                <a href="#"><small>Save The Earth</small></a>
                            </li>
                        </ul>
                    </div>                    
                    <div class="col-md-6 col-xs-12">  
                        <label style="font-size: 25px">
                            Indahnya berbagi di komunitas Semua Berbagi...  
                        </label>  
                        <div class="row">  
                            <div class="col-md-1 col-xs-12"></div>
                            <div class="col-md-10 col-xs-12">   
                                <div class="panel panel-default">
                                    <div class="panel-body">
                                        <form class="form-group-lg form-group-sm" action="action_daftar.php" method="post">
                                            <input type="text" class="form-control" placeholder="Nama *" name="namaUser"/>
                                            <br/>
                                            <input type="text" class="form-control" placeholder="Email *" name="emailUser"/>
                                            <br/>
                                            <input type="number" class="form-control" placeholder="Nomor Telepon *" name="noTelpUser"/>
                                            <br/>
                                            <label>
                                                <input type="submit" class="btn btn-primary" value="Submit" name="submitDaftar"/>  * tidak boleh kosong / wajib diisi
                                            </label>
                                        </form>
                                    </div>
                                </div>         
                            </div>  
                        </div>  
                    </div>
                </div>
            </div>

            <div class="panel panel-default panelKat">
                <div class="panel-footer panelKaki">
                    <div class="row">
                        <div class="col-md-12 col-xs-12">
                            <br><br><br>
                            <center><label class="fontKaki"><h4>@ Copyright 2014 semua berbagi - All right reserved</h4></label></center>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="./js/jquery.min.js"></script>
        <script src="./js/bootstrap.js"></script>
    </body>
</html>